package com.example.freemusic

import android.os.Bundle

import io.flutter.app.FlutterActivity
import io.flutter.plugin.common.PluginRegistry
import io.flutter.plugins.GeneratedPluginRegistrant
import io.flutter.plugins.FlutterOpenAppPlugin

class MainActivity: FlutterActivity() {
  override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    GeneratedPluginRegistrant.registerWith(this)
    registerCustomPlugin(this);
  }

  private fun registerCustomPlugin(registrar: PluginRegistry?) {
    if(registrar != null){
      FlutterOpenAppPlugin.registerWith(registrar.registrarFor(FlutterOpenAppPlugin.CHANNEL));
    }
  }
}
